$(document).ready(function(){
	editPassword = function()
	{
		$("#passportForm").ajaxSubmit({
			dataType:"json",
			url:'/member/change_password.html',
			type:'post',
			beforeSubmit:function(){
			if($.trim($("#password").val()) != $.trim($("#repassword").val()))
			{
				alert("两次密码输入不一致！");
				$("#password").focus();
				return false;
			}
		},
				success:function (data){
					if(data.result == 'success')
					{
						window.location.href= '/member/logout.html?refer=%2Fmember.html';
					}
					else if(data.result = 'fail')
					{
						alert(data.msg);
					}
					else
					{
						alert("操作出错");
					}
				}
			});
	}
})